import React from 'react';
import { Empty, Button } from 'antd';
import styles from './index.less';
import classnames from 'classnames';
import { Link } from 'umi';

const EmptyCenter = props => {
  const { className, jump = false, ...rest } = props;
  return (
    <div className={classnames(styles['empty-wrap'], className)}>
      <Empty
        imageStyle={{
          height: 60,
        }}
        image={Empty.PRESENTED_IMAGE_SIMPLE}
        {...rest}
      />
      {jump && (
        <Button type={'primary'}>
          <Link to={'/deviceType'}>直接跳转</Link>
        </Button>
      )}
    </div>
  );
};
export default EmptyCenter;
